package com.xiangban.feign;

import com.xiangban.feign.fallback.CommonPayFallback;
import com.xiangban.model.res.ApiResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.HashMap;

/**
 * @Author ly
 * @date 2021/12/10 15:49
 */
@Component
@FeignClient(value = "${system.pay}",fallbackFactory = CommonPayFallback.class)
public interface CommonPayFeign {
    @RequestMapping("/pay/unifiedOrder")
    @ApiOperation("统一下单")
    ApiResult<Object> unifiedOrder(@RequestBody HashMap<String,String> map);

    @RequestMapping("/pay/transfers")
    @ApiOperation("统一提现")
    ApiResult<Object> transfers(@RequestBody HashMap<String,String> map);

}
